import time
x=time.time()
a=open("m1_sorted.txt")
A=[]
for i in a:
    A.append(int(i))
y=time.time()
print("m1_sorted.txt",y-x, "milliseconds")
m=time.time()
b=open("m2_reverse.txt")
B=[]
for k in b:
    B.append(int(k))
for j in range(len(B)):
    for k in range(len(B)-1):
        if B[k] > B[k+1]:
            B[k], B[k+1] = B[k+1], B[k]
c=time.time()
print("m2_reverse.txt", c-m, "milliseconds")
s=time.time()
g=open("m3_shuffle.txt")
G=[]
for n in g:
    G.append(int(n))
for l in range(len(G)):
    for n in range(len(G)-1):
        if G[n] > G[n+1]:
            G[n], G[n+1] = G[n+1], G[n]
o=time.time()
print("m3_shuffle.txt", o-s, "milliseconds")

    